← Course index · R113 Network & Systems
MMIBUT Métiers du Multimédia et de l'Internet · IUT de Vélizy

TD · Ethernet frame analysis

Module MM1R13 Hosting — MAC layer: frame structure, hex dumps, trace reading and IP/TCP/UDP decoding.

TDMAC layerWiresharkHex dump

01Exercise 1 — Frame structure

Ethernet II frame

Preamble7 bytes
SFD1 byte
Dest. MAC6 bytes
Src. MAC6 bytes
Type2 bytes
Data (payload)46 – 1500 bytes
CRC4 bytes
Questions
  1. What is the purpose of the preamble?
  2. What are the minimum and maximum lengths of an Ethernet frame?
  3. What happens if there are fewer than 46 bytes to put in the frame?

02Exercise 2 — Hex dump analysis

Trace of an Ethernet communication (without preamble and CRC) captured by Wireshark:

00 13 72 fe 18 ba 00 15 c5 b9 de 36 08 00 45 00 ..r........6..E. 00 30 29 c2 00 00 80 01 fc 4a 0a 00 00 3a 0a 00 .0)......J...:.. 00 76 08 00 36 5c 03 00 14 00 61 62 63 64 65 66 .v..6\....abcdef 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 ghijklmnopqrstuv 77 61 62 63 64 65 66 67 68 69 wabcdefghi
Questions
  1. What is the destination address?
  2. What is the sender's address?
  3. What is the value of the Type field?
  4. How much data does the frame contain?

03Exercise 3 — Text trace analysis

Packet 1 (point-to-point)

ETHER: Packet 1 arrived at 18:29:10.10 ETHER: Packet size 64 bytes ETHER: Destination = 8:0:20:18:ba:40 ETHER: Source = aa:0:4:0:1f:c8 ETHER: Ethertype = 0800 (IP)

Packet 2 (broadcast)

ETHER: Packet 2 arrived at 11:40:57.78 ETHER: Packet size 60 bytes ETHER: Destination = ff:ff:ff:ff:ff:ff ETHER: Source = 8:0:20:18:ba:40 ETHER: Ethertype = 0806 (ARP)
Questions
  1. Identify the sender and receiver addresses in both packets.
  2. Can two machines have the same Ethernet address? Why?
  3. How does the capture software identify a manufacturer (e.g. DEC, SUN)?
  4. What does a "broadcast" address mean?
  5. How can a single message reach several recipients at the same time?

04Exercise 4 — Advanced analysis (IP / TCP / UDP)

Note: the frames start with the MAC addresses. 0800 indicates IP. Use the appendix to decode the headers.

Frame 1

0000 5000 0133 000a e443 fbc3 0800 4500 ..P..3...C....E. 0048 4a39 0000 4011 08e1 824f 5ae5 824f .HJ9..@....OZ..O c801 fd51 0035 0034 39f8 b2f1 0100 0001 ...Q.5.49....... 0000 0000 0000 0332 3535 0239 3102 3739 .......255.91.79 0331 3330 0769 6e2d 6164 6472 0461 7270 .130.in-addr.arp

Frame 2

0000 5000 0133 000a e443 fbc3 0800 4500 ..P..3...C....E. 0232 49e6 4000 4006 42f9 824f 5ae5 824f .2I.@.@.B..OZ..O 0de3 5d68 fd14 0050 7144 f00a 5401 7889 ..]h...PqD..T.x. 5018 832c 224d 0000 4745 5420 2f20 4854 P..,."M..GET / HT
Questions
  1. For each frame, find manually:
    • the IP addresses (source / destination)
    • the protocol used (TCP or UDP)
    • the port numbers (source / destination)
  2. In your opinion, what is the origin / context of these frames?